<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>轮播图</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    li,
    ul {
      list-style: none;
    }

    .focus-box {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      right: 0;
      margin: auto;
      width: 500px;
      height: 300px;
      background: yellow;
      overflow: hidden;
      border: 1px solid #ccc;
    }

    .focus {
      position: absolute;
      left: -500px;
      width: 4000px;
      height: 100%;
    }

    .focus li {
      float: left;
      width: 500px;
      height: 300px;
      line-height: 300px;
      font-size: 30px;
      text-align: center;
      user-select: none;
      cursor: pointer;
    }

    .circle {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      right: 0;
      margin: auto auto 30px auto;
      height: 30px;
      line-height: 30px;
      width: 210px;
      /* background: #ccc; */
    }

    .circle li {
      float: left;
      margin-right: 5px;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: #000;
      user-select: none;
      cursor: pointer;
      color: #fff;
      text-align: center;
    }

    .circle .active {
      background: green;
    }

    .arrow {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      right: 0;
      margin: auto;
      height: 30px;
      line-height: 30px;
      clear: both;
    }

    .arrow .arrowBtn {
      height: 30px;
      width: 50px;
      background: brown;
      font-size: 30px;
      color: #fff;
      text-align: center;
    }

    .arrow .arrowL {
      float: left;
      border-radius: 0 15px 15px 0;
    }

    .arrow .arrowR {
      float: right;
      border-radius: 15px 0 0 15px;
    }
  </style>
</head>

<body>

  <div class="focus-box">
    <!-- 轮播图 -->
    <ul class="focus">
      <li style="background: red;">1</li>
      <li style="background: yellow;">2</li>
      <li style="background: grey;">3</li>
      <li style="background: blue;">4</li>
      <li style="background: skyblue;">5</li>
      <li style="background: orange;">6</li>
    </ul>
    <!-- 小圆圈 -->
    <ol class="circle">
      <!-- <li class="active">1</li>
      <li>2</li>
      <li>3</li>
      <li>4</li>
      <li>5</li>
      <li>6</li> -->
    </ol>
    <!-- 左右箭头 -->
    <div class="arrow">
      <div class="arrowBtn arrowL">&lt</div>
      <div class="arrowBtn arrowR">&gt</div>
    </div>
  </div>

  <script src="../js工具和兼容/ultis.js"></script>
  <script src="./js/index.js"></script>
</body>

</html>